package tech.aistar.corejava.day02;

/**
 * Created by 李雨昂 on 2019/7/17.
 */
public class BreakAndContinueDemo {
    public static void main(String[] args) {
        //break只会出现switch块或者循环语句块中
        //continue语句只能出现在循环语句块中
        for(int i = 0;i <= 10;i++){
            if(i == 3){
                //break;//跳出循环
                continue;//跳出本轮循环,继续下一轮循环
            }
            System.out.println(i);
        }
        System.out.println("outside....");
    }
}
